package com.ruoyi.bizsys.service;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.bizsys.domain.IncreasedLimitLog;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
 * 提额日志Service接口
 *
 * @author african-loan
 * @date 2021-12-30
 */
public interface IIncreasedLimitLogService extends IService<IncreasedLimitLog>{
    /**
     * 查询提额日志
     *
     * @param id 提额日志ID
     * @return 提额日志
     */
    public IncreasedLimitLog selectIncreasedLimitLogById(Long id);

    /**
     * 查询提额日志列表
     *
     * @param increasedLimitLog 提额日志
     * @return 提额日志集合
     */
    public List<IncreasedLimitLog> selectIncreasedLimitLogList(IncreasedLimitLog increasedLimitLog);

    /**
     * 新增提额日志
     *
     * @param increasedLimitLog 提额日志
     * @return 结果
     */
    public int insertIncreasedLimitLog(IncreasedLimitLog increasedLimitLog);

    /**
     * 修改提额日志
     *
     * @param increasedLimitLog 提额日志
     * @return 结果
     */
    public int updateIncreasedLimitLog(IncreasedLimitLog increasedLimitLog);

    /**
     * 批量删除提额日志
     *
     * @param ids 需要删除的提额日志ID
     * @return 结果
     */
    public int deleteIncreasedLimitLogByIds(Long[] ids);

    /**
     * 删除提额日志信息
     *
     * @param id 提额日志ID
     * @return 结果
     */
    public int deleteIncreasedLimitLogById(Long id);

    Double getLineByNow(String customerNo);

    IncreasedLimitLog getIncreasedAmtByCust( String custNo);

    /**
     * 补充信息已获额度
     * @param custNo
     * @return
     */
    BigDecimal increasedSumByType(String custNo,String type);
}
